package com.texplose.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author : lyj
 * @Timer : 2022/5/23
 * @Description :
 * 用户收藏
 */
@Repository
public interface CollectionMapper {
    void deleteCollectionById(@Param("id") Integer id);

    void addCollection(@Param("userId") Integer userId, @Param("recipeId") Integer recipeId);

    Integer countCollection(@Param("id") Integer id);

    Boolean checkCollection(@Param("userId") Integer userId, @Param("recipeId") Integer recipeId);

    Integer delete(@Param("userId") Integer userId, @Param("recipeId") Integer recipeId);
}
